<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/12/11 0011
  Time: 17:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
 <c:set var="data" value="qingwen is a big shuaige" />
 <c:set var="age" value="11" />
 ${data}
 <%
     request.setAttribute("str","<h1 style='font-size:100px;color:red'>肖庆文是个帅锅</h1>");
 %>
 <h1>
     <c:if test="${age>=18}">
         小鲜肉
     </c:if>
     <c:if test="${age<18}">
         小小鲜肉
     </c:if>
 </h1>
<h2>
    <c:out value="${myname}" default="名字没有设置"/>
</h2>
<%--${str}--%>
<c:out value="${str}"/>
</body>
</html>
